

from frontend.roleApplication import RoleApplication
from frontend.form import Type

class BillerApplication(RoleApplication):

    def __init__(self):

        super(BillerApplication, self).__init__("RugsWorkflow", "Biller") # use actual work flow name and role name
        
        # specify actual task name and name_fields:
        self.register_sink_step("ObserveOrder", self.observe_order, name_fields=["sequence", "FullName"])

    def observe_order(self, stepname, form):
        
        form.add_task_label(fields=["FullName"]) # use one or more fields from order to define label
        #  add any static labels or fields you want to include in this form


if __name__ == '__main__':
    app = BillerApplication()
    app.MainLoop()